from django.conf.urls import url
from . import views


urlpatterns = [
    url(r'^books/$', views.BooksView.as_view()),
    url(r'^books/(?P<pk>\d+)/$', views.BookView.as_view()),
    url(r'^heros/$', views.HerosView.as_view()),
    url(r'^heros/(?P<pk>\d+)/$', views.HeroView.as_view()),
]




# from rest_framework.routers import DefaultRouter
#
# router = DefaultRouter()
# router.register('books', views.BookModelViewSet)
# urlpatterns += router.urls